﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace GymMaster.View
{
    public partial class RecuperaSenha : BasePageGymMaster
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void btnRecuperar_onClick(object sender, EventArgs e)
        {
            try
            {
                String email = "cs-thiago@hotmail.com";
                sendEmail(email);

                String envioEmail = email.Substring(0, 3) + "****@" + email.Split('@')[1];
                PasswordRecovery1.UserNameFailureText = "E-mail para recuperação de senha enviado para: " + envioEmail;
            }
            catch (Exception ex)
            {
                PasswordRecovery1.UserNameFailureText = ex.Message.ToString();
            }

        }
    }
}